@echo off
chcp 65001
echo Starting ONVIF Manager in Development Mode with UTF-8 encoding...

rem Set console encoding to UTF-8
set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8

rem Set Maven options for UTF-8
set MAVEN_OPTS=-Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Xmx1024m

echo Environment configured for UTF-8.
echo JAVA_TOOL_OPTIONS: %JAVA_TOOL_OPTIONS%
echo MAVEN_OPTS: %MAVEN_OPTS%
echo Starting development server...

rem Start the application with Maven
mvn spring-boot:run

echo Application stopped.
pause